<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码修改 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" language="javascript" src='templets/js/checkSubmit.js'></script>
<script type="text/javascript">  
  function checkSubmit()
{
	if(document.form2.oldpwd.value=='')
	{
		document.form2.oldpwd.focus();
		alert("旧密码必须填写！");
		return false;
	}
	if(document.form2.userpwdok.value!=document.form2.userpwd.value)
	{
		document.form2.userpwdok.focus();
		alert("两次密码不一致！");
		return false;
	}
	if(document.form2.vdcode.value=="")
	{
		document.form2.vdcode.focus();
		alert("验证码不能为空！");
		return false;
	}
}
</script>
</head>
<body>
<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 
<script>
	$(function(){
		var ids = $('#8');
		var span  = ids.find('.icons');
		var name = span.attr('class');
		var newName = name.replace(/(\S+)$/,'$1_h');
		span.addClass(newName);
		span.parent('a').addClass('cur');
	})
</script>
<div class="main_right">

<div class="zhsz_title">
<a href="edit_fullinfo.php">基本资料</a><a href="edit_baseinfo.php" class="cur">密码修改</a><a href="edit_face.php">头像设置</a><a href="certification.php" >实名认证</a>
</div>
     <form action="edit_baseinfo.php" method="post" enctype="multipart/form-data" name="form2" onsubmit="return checkSubmit();">
     <input type="hidden" name="dopost" value="save" />
<ul class="jbzl_form">
<li><span class="col1">用户名：</span><span class="col3">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $cfg_ml->M_LoginID; ?></span></li>
<li><span class="col1">原登陆密码：</span><span class="col2"><input name="oldpwd" type="password" id="oldpwd" class="text" /></span><span class="col3"><span class="red">*</span></span></li>
<li><span class="col1">新密码：</span><span class="col2"><input name="userpwd" type="password" id="userpwd" class="text" /></span><span class="col3" id="_userpwdok">(不修改密码请保留此项为空)</span></li>
<li><span class="col1">确认新密码：</span><span class="col2"><input name="userpwdok" type="password" id="userpwdok" value="" class="text" /></span><span class="col3" id="_userpwdok2">(不修改密码请保留此项为空)</span></li>
<li>
<span class="col1">验证码：</span>
<span class="col2">
<input name="vdcode" type="text" id="vdcode" class="text" />
</span>
<span class="col3">
<img src="../include/vdimgck.php" align="absmiddle" alt="看不清？点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" /><span style="display:inline-block;height:100%;vertical-align:middle;"></span>
</span>
</li>
<li>
<span class="col1"></span>
<span class="col2"><input type="submit" class="submit_button" value="保存修改"></span>
</li>
</ul>
</form>

</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>

<script>
	//会员升级
	var typeid = document.querySelector('#typeid');
	var divs = document.querySelectorAll('.hysj_jiage li div');
	for(var i=0,len=divs.length;i<len;i++){
		divs[i].onclick = divCLickHandler;
	}
	function divCLickHandler(e){
		for(var i=0,len=divs.length;i<len;i++){
			divs[i].className = '';
		}
		this.className = 'cur';
		typeid.value = this.getAttribute('_typeid');
	}
</script>
<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>